package com.test.restruant.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("index.html")
    public String index() {
        return "index";
    }

    @RequestMapping("detail/{page}.html")
    public String page(@PathVariable String page) {
        return page;
    }
}
